package domain;

public class Teacher extends Person{
    private boolean flag=false;       //是否派发任务
    private Task task;

    public Teacher() {

    }
    public Teacher(String name) {
        super(name);
    }

    public boolean isFlag() {
        return flag;
    }

    public void setFlag(boolean flag) {
        this.flag = flag;
    }

    public Task getTask() {
        return task;
    }

    public void setTask(Task task) {
        this.task = task;
    }
}
